package Task1;

import java.util.Set;

public class iterate extends Student{
    public iterate() {
    }

    public static void all(){
        Set<Integer> s1 = idName.keySet();
        for (Integer id: s1
             ) {
            System.out.println("该学生的姓名为："+idName.get(id)+", 学号为："+id+"，年龄为"+idAge.get(id)+"。");
        }
    }
}
